package design_pattern.decorator.demo02;

/**
 * @version 1.0.0
 * Created by cyd on 2022-06-06 12:38:01
 * @ClassName : design_pattern.decorator.demo02.NormalClothes
 * @Description : 类描述
 */
public class FashionClothes extends Decorator {

    private void wearPersonal() {
        ConcretePerson person = (ConcretePerson) getPerson();
        System.out.println(person.getName() + ":穿的很普通");
    }

    @Override
    public void wear() {
        super.wear();
        wearPersonal();
    }
}
